jQuery(document).ready(function(){
/**
     * search city/state
     * @author Tuan
     */
     jQuery(".txt-state-search").autocomplete({
            source: function(request, response) {

                jQuery.ajax({
                    url: templateUrl+'/ajax/search-state.php',
                    dataType: "json",
                    data: {
                        state: request.term,//get name page typing,
			country: jQuery('.country-select').val()
                    },
                    success: function(data) {						
			
                       response(data);		       
                    }
                });
            },
            minLength: 1
//            select: function(event, ui) {
//                jQuery('#id-place-page').val(ui.item.page_id);
//            }
        });	
});